from input_parser import InputParser
from models.graph import OneDimensionalGraph
from coverage_simulator import simulateCoverages, simulatePaths, simulateGraphInstance
from visualizer import oneDimensionalHist
from algorithms_tester import testCDS

import numpy as np

def main():
    # Parse input
    parser = InputParser()
    args = parser.parse_input()
    number_vertices = args.number_vertices
    number_runs = args.number_runs
    seed = args.seed

    '''
    vertices = []
    for i in range(number_runs):
        vertices += simulateGraphInstance(number_vertices, i)
    b = np.sqrt( (number_vertices + 1) / 2.) / 2.
    '''
    #oneDimensionalHist(vertices, boundary=b)
    simulateCoverages(number_vertices, number_runs, seed)
    #simulatePaths(number_vertices, number_runs, seed)
    # testCDS(number_vertices)

if __name__ == '__main__':
    main()
